package com.java.service;

import com.java.entity.RaceAccount;
import com.java.util.resp.BaseRespone;
import com.java.util.resp.TableRespone;

public interface AccountService {

	BaseRespone saveAuth(String number, String openId, String nick, String logo);
	
	RaceAccount getAccount(String accountId);
	
	RaceAccount getAccountByOpenId(String openId);

	public BaseRespone login(Integer type, String number, String password);

	public BaseRespone register(Integer type, String username, String password, String name);
	
	public TableRespone getAccountList(Integer type, int page, int size);

	public BaseRespone update(RaceAccount account);

	BaseRespone updateAccount(RaceAccount account);

	BaseRespone createAccount(RaceAccount account);
}
